import {createApp, defineComponent, h} from "vue";
import MyLoading from "./components/Loading.vue";

let mainDiv = document.createElement("div");
let loadingVm = createApp(MyLoading);

loadingVm.mount(mainDiv);

export default class Loading{
    static show(){
        document.body.appendChild(mainDiv);
    }
    static hide(){
        try{
            document.body.removeChild(mainDiv);
        }catch (e){

        }

    }
}